export default [
  {
    path: '/user',
    layout: false,
    routes: [{ name: '登录', path: '/user/login', component: './User/Login' }],
  },
  {
    path: '/',
    redirect: '/dashboard',
  },
  {
    path: '/dashboard',
    name: '主页',
    icon: 'home',
    routes: [
      {
        path: '/dashboard',
        name: '概览',
        icon: 'dashboard',
        component: './Dashboard',
      },
      { name: '稽核工单', icon: 'table', path: '/dashboard/audit', component: './Audit' },
      { name: '积分查询', icon: 'table', path: '/dashboard/score', component: './Score' },
      { name: '授权验证(WIP)', icon: 'table', path: '/dashboard/auth', component: './Auth' },
      { name: '统计报表(WIP)', icon: 'table', path: '/dashboard/statics', component: './Statics' },
      {
        path: '/dashboard/admin',
        name: '管理页',
        icon: 'crown',
        access: 'canAdmin',
        routes: [{ path: '/dashboard/admin/sub-page', name: '一级管理页', component: './Admin' }],
      },
    ],
  },
  {
    path: '/bi',
    layout: false,
    name: '数据大屏',
    icon: 'crown',
    component: './BI',
  },
  { path: '/block', name: '区块链', icon: 'crown', component: './Block' },
  { path: '/device', name: '边缘设备', icon: 'crown', component: './Device' },
  { path: '*', layout: false, component: './404' },
];
